<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body>
<? if ($sts=='edit') {?>
<form id="form_na" method="post" enctype="multipart/form-data">
<input type="hidden" name="sts" id="sts" value="edit"/>
<input type="hidden" name="id" id="id" value="<?=$data["toko_user"]->id;?>"/>
<fieldset>

<label>Nama Toko</label> : <input type="text" name="nama_toko" id="nama_toko" style="width:200px;" value="<?=$data["toko_user"]->nama_toko;?>" class="text_na" /><br /><br />
<label>Deskripsi Toko</label> <span style=" vertical-align:top">:</span> <textarea name="deskripsi" class="text_na" id="deskripsi"><?=$data["toko_user"]->deskripsi;?></textarea><br /><br />
<label>Kata Kunci Toko</label> : <input type="text" name="kata_kunci" id="kata_kunci" style="width:200px;" value="<?=$data["toko_user"]->kata_kunci;?>" class="text_na" /><br /><br />

<label>Logo Toko</label> :  <input type="file" name="logo" id="logo" style="width:200px;" class="easyui-validatebox text_na" /><br /><br />
<a id="simpan" href="#" style="float:right">Update Perubahan</a>
</fieldset>
</form>
<? } else {
?>

	<form id="form_na" method="post" enctype="multipart/form-data">
	<input type="hidden" name="sts" id="sts" value="add"/>
	<input type="hidden" name="id" id="id" value=""/>
	<fieldset >
	<label>Nama Toko</label> : <input type="text" name="nama_toko" id="nama_toko" style="width:200px;" value="" class="text_na" /><br /><br />
	<label>Deskripsi Toko</label> <span style=" vertical-align:top">:</span> <textarea name="deskripsi" class="text_na" id="deskripsi"></textarea><br /><br />
	<label>Kata Kunci Toko</label> : <input type="text" name="kata_kunci" id="kata_kunci" style="width:200px;" value="" class="text_na" /><br /><br />
	<label>Logo Toko</label> :  <input type="file" name="logo" id="logo" style="width:200px;" class="easyui-validatebox text_na" /><br /><br />
	<a id="simpan" href="#" style="float:right"><span id="nm_simpan">Simpan</span></a>
	<a id="tutup" href="#" style="float:right"><span id="nm_tutup">Tutup</span></a>
	
	</fieldset>
	</form>


<?
}?>
</body>
</html>
<script>
$(".easyui-validatebox").validatebox({required:true } );
$(".easyui-validatemail").validatebox({required:true,validType:'email'}); 
sts_form="toko_user";
</script>
<script type="text/javascript" src="<?=base_url()?>assets/js/data/backend/form.js"></script>
